{% extends 'WebQuant/base_strateEdit.html' %}
{% block title %}策略编辑{% endblock %}
{% block content %}
{% include 'WebQuant/strategy_nav.html' %}
<div class="eidit-container">
    <div class="edit_left">
        <div class="e_left_head">
            <span></span>
            <!--<a class="compile" href="javascript:void(0)">编译</a> -->
            <input id="compile"  value="编译" type="button">
            <input id="save"  value="保存" type="button">
            <a href="javascript:void(0)" onclick="onCopy()">复制</a>
            <ul  class="tool-list">
                <li id="minFontSize" onclick="strategy.changeFontSize(12);">小号字体</li>
                <li id="midFontSize" onclick="strategy.changeFontSize(14);" class="col-red">中号字体</li>
                <li id="maxFontSize" onclick="strategy.changeFontSize(16);" class="add-bottom">大号字体</li>
                <li id="xcodeTheme" onclick="strategy.changeTheme('xcode');" class="col-red">浅色背景</li>
                <li id="monokaiTheme" onclick="strategy.changeTheme('monokai');" class="add-bottom">深色背景
                </li>
                <li id="defaultKey" onclick="strategy.changeKeyboard('default');" class="col-red">默认</li>
                <li id="vimKey" onclick="strategy.changeKeyboard('vim');">Vim</li>
                <li id="emacsKey" onclick="strategy.changeKeyboard('emacs');" class="add-bottom">Emacs</li>
            </ul>
        </div>
        <div id="editor">{{strategyContext}}</div>
    </div>
    <div class="edit_right">
        <div class="e_right_head">
            <input class="time" id="starttime" readonly="readOnly" value="{{beginDate}}"> 至
            <input class="time" id="endtime" readonly="readOnly" value="{{endDate}}" >
            <div class="money"><span>￥</span><input  type="text" value="{{intCash}}"></div>
            <a class="mt" href="javascript:void(0)">每天</a>
            <span class="return-back">运行回测</span>
        </div>
        <div class="item_list">
            <div class="itme1">
                <p>回测收益</p>
                <span>--</span>
            </div>
            <div class="itme2">
                <p>回测年化收益</p>
                <span>--</span>
            </div>
            <div class="itme3">
                <p>基准收益</p>
                <span>--</span>
            </div>
        </div>
        <div style="height: 280px;" id="backTestChart">
            <div class="r_chart">请编译您的策略</div>
        </div>
        <div class="menu">
            <a href="javascript:void(0)"><div class="yes_log on">日志</div></a>
            <a href="javascript:void(0)"><div class="err_log">运行时错误</div></a>
        </div>
        <div class="input_pannel1">
            <div class="pannel_in"></div>
            <div class="pannel_err"></div>
        </div>
        <div class="userId" style="display:none">{{userId}}</div>
    </div>
</div>

{% endblock %}
{% block bottom %}
<div class="pop pop_finish frameWrap none">
    <div class="pop_box login_box">
        <a class="pop_close" href="javascript:void(0);">
            <span class="txt">关闭</span>
        </a>
        <iframe class="frameItem" id="frameItem" src=""> </iframe>
    </div>
</div>
<script src="/static/UPQuant/js/ace/ace.js" type="text/javascript"></script>
<script src="/static/UPQuant/js/ace/ext-language_tools.js"></script>
<script src="/static/UPQuant/js/ace/ext-statusbar.js"></script>
<script src="/static/WebQuant/js/jq.js"></script>
<script src='/static/UPQuant/js/nprogress-master/nprogress.js'></script>
<script src="/static/WebQuant/js/hstock/highstock.js"></script>
<script src="/static/WebQuant/js/hstock/exporting.js"></script>
<script src="/static/WebQuant/js/csrf.js"></script>
<script src="/static/WebQuant/js/pikaday.min.js"></script>
<script src="/static/WebQuant/js/editor.js"></script>
<script src="/static/WebQuant/js/base.js"></script>
{% endblock %}
